package com.bw.liveplay.common.mvvm.adapter

import android.os.Parcel
import android.os.Parcelable
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
import androidx.fragment.app.FragmentStatePagerAdapter
import androidx.viewpager2.adapter.FragmentStateAdapter

/**
 * @author KK
 * @description:
 * @date :2021/11/10 15:24
 *
 */
class ViewPagerAdapter(fragmentManager: FragmentManager) : FragmentPagerAdapter(fragmentManager) {

    var list : ArrayList<Fragment> = ArrayList()
    override fun getCount(): Int {
      return list!!.size
    }

    override fun getItem(position: Int): Fragment {
        return list!!.get(position)
    }

}